Websydian v6.1 online documentationOnline documentation - WebsydianExpress v3.5

ExtEventHandlerPopUp

Scoped name

WSYEXTJS/ExtEventHandlerPopUp

Note that this abstract function is placed in the WSYEXTJS model.

Purpose

This EventHandler inherits from the standard ExtEventHandler. The only change in behavior is that the content loaded by the PageGenerator that is called by this EventHandler will be loaded in a modal dialog window (pop-up window).

This corresponds to specifying the value wsyextpopupevent in the source code wsyeventtype that is scoped by the EventHandler.

Usage

The EventHandler is used in exactly the same manner as the basic ExtEventHandler. The only difference is that when the user presses the button created for the EventHandler, a new pop-up window is created and populated with the content returned by the PageGenerator.

The ExtEventHandlerPopUp scopes the same source codes as the ExtEventHandler. We highly recommend that you do not change the value of the wsyeventtype source code - as this is the distinguishing property of the ExtEventHandlerPopUp.

Special considerations

Closing a popup window

The ExtEventHandlerPopUp calls a PageGenerator. The output generated by this PageGenerator is used to populate the pop up window that was opened when the button was pressed. To enable the user to close the pop up window again, you should ensure that the PageGenerator includes/comprises an EventHandler that has the value wsyclose specified for the source code wsyonsuccess. In most cases, this EventHandler should just call the delivered WSYEXTJS/ExtStatusPage.

 

More information